public class lianxi843 {
    package com.example.s20241022;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

    public class lianxi53 {
    package com.example.s20241022;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

        @Slf4j
        @Aspect
        @Component
        @Order(3)
        public class AspectDemo4 {
            @Pointcut("execution(* com.example.s20241022.*.*(..))")
            private void pt(){}
            //前置通知
            @Before("pt()")
            public void doBefore() {
                log.info("执⾏ AspectDemo4 -> Before ⽅法");
            }
            //后置通知
            @After("pt()")
            public void doAfter() {
                log.info("执⾏ AspectDemo4 -> After ⽅法");
            }
        }

    }

}
